<template>
  <div class="search-header">
    <div class="back" @click="backHandler"><i class="iconfont">&#xe871;</i></div>
    <div class="input-field"><input type="text"></div>
    <div><i class="iconfont">&#xe866;</i></div>
  </div>
</template>

<script>
export default {
  name: 'SearchHeader',
  created () {

  },
  methods: {
    backHandler () {
      this.$router.back()
    }
  }
}
</script>

<style lang="scss" scoped>
    .search-header{
        display: flex;
        align-items: center;
        height: 40px;
        .back{
          width:60px;
          text-align: center;
        }
        .input-field{
            flex: 1;
        }
    }
</style>
